package com.woniuxy.lrz.carlproject.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 购物车表
 * </p>
 *
 * @author lrz
 * @since 2022-10-04
 */
@TableName("shopcar")
@ApiModel(value = "Shopcar对象", description = "购物车表")
public class Shopcar implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "shopcar_id", type = IdType.AUTO)
    private Integer shopcarId;

    @ApiModelProperty("关联商品sku id")
    private Integer goodSkuId;

    @ApiModelProperty("关联用户id")
    private Integer userId;

    @ApiModelProperty("商品数量")
    private Integer goodCount;

    @ApiModelProperty("商品名称")
    private String goodName;

    @ApiModelProperty("商品规格型号")
    private String goodPropertys;

    @ApiModelProperty("商品单价")
    private BigDecimal goodPrice;

    @ApiModelProperty("商品主图")
    private String goodPhoto;

    public Integer getShopcarId() {
        return shopcarId;
    }

    public void setShopcarId(Integer shopcarId) {
        this.shopcarId = shopcarId;
    }

    public Integer getGoodSkuId() {
        return goodSkuId;
    }

    public void setGoodSkuId(Integer goodSkuId) {
        this.goodSkuId = goodSkuId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGoodCount() {
        return goodCount;
    }

    public void setGoodCount(Integer goodCount) {
        this.goodCount = goodCount;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public String getGoodPropertys() {
        return goodPropertys;
    }

    public void setGoodPropertys(String goodPropertys) {
        this.goodPropertys = goodPropertys;
    }

    public BigDecimal getGoodPrice() {
        return goodPrice;
    }

    public void setGoodPrice(BigDecimal goodPrice) {
        this.goodPrice = goodPrice;
    }

    public String getGoodPhoto() {
        return goodPhoto;
    }

    public void setGoodPhoto(String goodPhoto) {
        this.goodPhoto = goodPhoto;
    }

    @Override
    public String toString() {
        return "Shopcar{" +
        "shopcarId = " + shopcarId +
        ", goodSkuId = " + goodSkuId +
        ", userId = " + userId +
        ", goodCount = " + goodCount +
        ", goodName = " + goodName +
        ", goodPropertys = " + goodPropertys +
        ", goodPrice = " + goodPrice +
        ", goodPhoto = " + goodPhoto +
        "}";
    }
}
